package com.migo.service.impl;

import com.migo.dao.SparePartTypeDao;
import com.migo.entity.SparePartTypeEntity;
import com.migo.service.SparePartTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("sparePartTypeService")
public class SparePartTypeServiceImpl implements SparePartTypeService {
	@Autowired
	private SparePartTypeDao sparePartTypeDao;
	
	@Override
	public SparePartTypeEntity queryObject(Integer id){
		return sparePartTypeDao.queryObject(id);
	}
	
	@Override
	public List<SparePartTypeEntity> queryList(Map<String, Object> map){
		return sparePartTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sparePartTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(SparePartTypeEntity sparePartType){
		sparePartTypeDao.save(sparePartType);
	}
	
	@Override
	public void update(SparePartTypeEntity sparePartType){
		sparePartTypeDao.update(sparePartType);
	}
	
	@Override
	public void delete(Integer id){
		sparePartTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		sparePartTypeDao.deleteBatch(ids);
	}
	
}
